#include<iostream>

using std::cout;
using std::endl;

int  add()
{
    return 0;
}
template<class T,typename ...Args>
double add(T a,Args ...args)
    //采用T作为返回值会有精度损失
{
    return a+add(args...);
}
int main(void)
{
    cout<<add(1,2,3,4,5,6,7)<<endl;
    cout<<add(1.2,2,3,4,5,6,7)<<endl;
}


